expander: Call set_realized() later
authorBenjamin Otte <otte@redhat.com>
Thu, 20 Mar 2014 13:11:02 +0000 (14:11 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 20 Mar 2014 13:20:49 +0000 (14:20 +0100)
commitb20d49fc0477256d1e733e151524cf49ca9df3a0
treebeb84004ac3abbeb4bc8e11fdf3d6fb98ab1a64f
parent6726f37309f368e1c67d93a864469aad9088faaf
expander: Call set_realized() later

Widgets should only call set_realized() after having created and
registered their GDK windows. In this case, the creation of the style
context (or more exactly: figuring out the scale factor for it) requires
knowing if the widget is already realized. Which it isn't.

https://bugzilla.gnome.org/show_bug.cgi?id=726717
gtk/gtkexpander.c